package com.cy.pj.goods.service;


import com.cy.pj.goods.pojo.Goods;

import java.util.List;

public interface GoodsService {
        Goods findById(Integer id);
        int deleteById(Integer id);
        int saveGoods(Goods goods);
        List<Goods> findGoods();
        int updateGoods(Goods goods);
        List<Goods> findByName(String name);
}
/*
public interface GoodsService {

        List<Goods> findGoods();
        void insert(Goods goods);
        void update(Goods goods);
        Goods findGoodsById(Integer id);
        void delete(Integer id);
}*/
